package huatu;

public class Juxing extends Tuxing {
	double length, width;
	public Juxing(String name, double length, double width) {
		super(name);
		this.length = length;
		this.width = width;
	}
	
	public double getzhou() {
		return 2 * (length + width);

	}

	public double getmian() {
		return length * width;

	}

}
